import {http} from './request.js'
export const foodAPI ={
    getAllFoods: (businessId, orderId) => http.secure.get(`/foods?businessId=${businessId}&orderId=${orderId}`),
    addFood:(data)=>http.secure.post('/foods',data),
    updateFood:(id,data)=>http.secure.patch(`/foods/${id}`,data),
    getFoodById:(id)=>http.secure.get(`/foods/${id}`),
}